package top.xiequanquan.groupcode.system.interceptor;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author XQQ
 * @create 2019-05-15 17:24
 * @desc  拦截Authority注解
 **/
@Aspect
@Order(5)
@Component
public class AuthorityInterceptor {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Around("@annotation(top.xiequanquan.groupcode.system.annotation.Authority)")
    public Object around(ProceedingJoinPoint pjp) throws Throwable {



        return pjp.proceed();
    }
}
